package com.qfedu.meidijiaju.service.impl;

import com.qfedu.meidijiaju.service.LikeService;
import com.qfedu.meidijiaju.entity.Like;
import com.qfedu.meidijiaju.mapper.LikeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LikeServiceImpl implements LikeService {

    @Autowired
    private LikeMapper likeMapper;

    @Override
    public List<Like> queryLikeInfo(int uid) {
        return likeMapper.queryLikeInfo(uid);
    }

    @Override
    public boolean addLike(Like like) {
        return likeMapper.addLike(like);
    }

    @Override
    public boolean deleteLike(Like like) {
        return likeMapper.deleteLike(like);
    }
}
